<!-- 自定义模块-功能 -->
<template>
  <el-form class="diy_panel" label-width="80px">
    <el-row>
      <el-col :xs="24" :sm="24">
        <el-divider>功能拓展</el-divider>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="审核" prop="examine">
          <el-select v-model="obj.examine">
            <el-option label="无" value="无"></el-option>
            <el-option label="带审核" value="带审核"></el-option>
            <el-option label="带回复" value="带回复"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="支付" prop="pay">
          <el-select v-model="obj.pay">
            <el-option label="无" value="无"></el-option>
            <el-option label="即时支付" value="即时支付"></el-option>
            <el-option label="后台支付" value="后台支付"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="智能推荐" prop="recommend">
          <el-select v-model="obj.recommend">
            <el-option label="无" value="无"></el-option>
            <el-option label="热度" value="热度"></el-option>
            <el-option label="喜好" value="喜好"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="菜单跳转" prop="to_page">
          <el-select v-model="obj.to_page">
            <el-option label="无" value="无"></el-option>
            <el-option label="列表" value="列表"></el-option>
            <el-option label="添加" value="添加"></el-option>
            <el-option label="详情" value="详情"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="计时器" prop="time_type">
          <el-select v-model="obj.time_type">
            <el-option label="无" value="无"></el-option>
            <el-option label="时间" value="时间"></el-option>
            <el-option label="倒计时" value="倒计时"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="限制次数" prop="frequency">
          <el-select v-model="obj.frequency">
            <el-option label="无" value="无"></el-option>
            <el-option label="每天次" value="每天次"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="统计类型" prop="figure">
          <el-select v-model="obj.figure">
            <el-option label="无" value="无"></el-option>
            <el-option label="饼状图" value="饼状图"></el-option>
            <el-option label="柱状图" value="柱状图"></el-option>
            <el-option label="折线图" value="折线图"></el-option>
          </el-select>
        </el-form-item>
      </el-col>


      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="购物车" prop="cart_page">
          <el-select v-model="obj.cart_page">
            <el-option label="无" value="无"></el-option>
            <!-- <el-option label="缓存购物车" value="缓存购物车"></el-option> -->
            <el-option label="后台购物车" value="后台购物车"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="前台添加" prop="add_page">
          <el-select v-model="obj.add_page">
            <el-option label="无" value="无"></el-option>
            <el-option label="有添加" value="有添加"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="详情页" prop="details_page">
          <el-select v-model="obj.details_page">
            <el-option label="无" value="无"></el-option>
            <el-option label="有详情" value="有详情"></el-option>
            <el-option label="前详情" value="前详情"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="登录位置" prop="sign_page">
          <el-select v-model="obj.sign_page">
            <el-option label="无" value="无"></el-option>
            <el-option label="前台登" value="前台登"></el-option>
            <el-option label="后台登" value="后台登"></el-option>
            <el-option label="前后登" value="前后登"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="12" :sm="6" :md="4" :lg="3">
        <el-form-item label="注册位置" prop="register_page">
          <el-select v-model="obj.register_page">
            <el-option label="无" value="无"></el-option>
            <el-option label="前注册" value="前注册"></el-option>
            <el-option label="后注册" value="后注册"></el-option>
            <el-option label="前后注" value="前后注"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="24" :sm="6" :md="4" :lg="3">
        <el-form-item label="列表页" prop="list_page">
          <el-select v-model="obj.list_page">
            <el-option label="无" value="无"></el-option>
            <el-option label="有列表" value="有列表"></el-option>
            <el-option label="前列表" value="前列表"></el-option>
            <el-option label="带图列" value="带图列"></el-option>
          </el-select>
        </el-form-item>
      </el-col>

      <el-col :xs="24" :sm="24">
        <el-divider>附加</el-divider>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.show_home" label="带首页展示"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.integral" label="带积分"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.praise" label="带点赞"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.collect" label="带收藏"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.comment" label="带评论"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.score" label="带评分"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.location" label="带定位"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.click_num" label="带点击数"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.import_db" label="带导入"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.export_db" label="带导出"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.print" label="带打印"></el-checkbox>
      </el-col>

      <el-col :xs="12" :sm="8" :md="6" :lg="2">
        <el-checkbox v-model="obj.seat" label="带选座"></el-checkbox>
      </el-col>


      <el-col :xs="24" :sm="24">
        <el-divider>数据表</el-divider>
      </el-col>

      <el-col :xs="24" :sm="24" :md="12" :lg="9">
        <el-form-item label="后端计算" prop="compute">
          <el-input :rows="5" v-model="obj.compute" type="textarea" placeholder="商品ID:商品.库存 = 商品.库存 - 订单.数量"></el-input>
        </el-form-item>
      </el-col>

      <el-col :xs="24" :sm="12" :md="8" :lg="6">
        <el-form-item label="跨表操作" prop="table">
          <el-input v-model="obj.table" type="text" style="width: 45%;" placeholder="表名(多表用|分隔)"></el-input>
          -
          <el-input v-model="obj.table_nav_name" type="text" style="width: 45%;" placeholder="按钮(复数用|分隔)"></el-input>
        </el-form-item>
        <el-form-item label="ss读自表" prop="user_info">
          <el-input v-model="obj.read_from_user" placeholder="用户名读取表 例如: 学生信息" type="text"></el-input>
        </el-form-item>
      </el-col>

      <el-col :xs="24" :sm="12" :md="12" :lg="9">
        <el-form-item label="判断条件" prop="if">
          <el-input :rows="5" v-model="obj.if" type="textarea" placeholder="商品ID:订单.数量 <= 商品.库存；库存不足！"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>
</template>

<script>
  export default {
    props: {
       obj: {
         type: Object,
         default: function(){
           return {}
         }
       }
    }
  }
</script>

<style>
</style>
